<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>余额消费明细</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="-1503623837">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/manage/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/manage/js/jquery-1.7.1.min.js"></script>

	<script type="text/javascript" src="/manage/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/manage//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/manage/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/manage/css/define.css"/>
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "-1503623837";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/manage/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/manage/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("balancedetails.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		THIS.setData(protocol.data);
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#balancedetailsForm").form({
		"":function(){}
		,"balanceDetails.id":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"balanceDetails.member":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"balanceDetails.order":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"balanceDetails.number":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "消费数量不能为空";
			}
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"balanceDetails.products":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"balanceDetails.brand":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>



<form lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'}}" class="form editform edittype_{{edittype}}" ref="BalanceDetails" id="balancedetailsForm" name="balancedetailsForm" target="jsoniframe" action="balancedetails.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写余额消费明细相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
	{{lz.set("id_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"id"))))}}
	{{lz.set("id_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$id}}
	<dl lz:if="{{id_editable||id_readonly}}" class="id hidden " major  ref="id">
		<dt>编　　号:</dt>
		<dd lz:if="{{id_editable}}" input="hidden">
			<lz:block lz:if="{{balanceDetails$id}}">
				{{balanceDetails$id}}
			</lz:block>
			<lz:block lz:if="{{!balanceDetails$id}}">
			<input type="hidden" value="{{lz.htm(balanceDetails.id)}}" name="balanceDetails.id" id="id" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{id_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="id">{{balanceDetails.id}}</textarea>
		 		<span>
		 	
			 {{lz.html(balanceDetails.id$||balanceDetails.id)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$id}}
	{{lz.set("member_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"member"))))}}
	{{lz.set("member_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$member}}
	<dl lz:if="{{member_editable||member_readonly}}" class="member  " major  ref="member">
		<dt>会　　员:</dt>
		<dd lz:if="{{member_editable}}" input="query">
			<lz:block lz:if="{{balanceDetails$member}}">
				{{balanceDetails$member}}
			</lz:block>
			<lz:block lz:if="{{!balanceDetails$member}}">
		 			<input title="请输入会员信息昵称进行查询" class="combox narrow" action="/manage/query.Member.do?value={param}" type="text" id="member" name="balanceDetails.member" text="{{lz.html(balanceDetails.member$||balanceDetails.member)}}" value="{{lz.htm(balanceDetails.member)}}" />
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{member_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="member">{{balanceDetails.member}}</textarea>
		 		<span>
		 	
			 {{lz.html(balanceDetails.member$||balanceDetails.member)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$member}}
	{{lz.set("order_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"order"))))}}
	{{lz.set("order_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$order}}
	<dl lz:if="{{order_editable||order_readonly}}" class="order  " major  ref="order">
		<dt>所属订单:</dt>
		<dd lz:if="{{order_editable}}" input="query">
			<lz:block lz:if="{{balanceDetails$order}}">
				{{balanceDetails$order}}
			</lz:block>
			<lz:block lz:if="{{!balanceDetails$order}}">
		 			<input title="请输入商品订单订单号进行查询" class="combox narrow" action="/manage/query.DirectOrder.do?value={param}" type="text" id="order" name="balanceDetails.order" text="{{lz.html(balanceDetails.order$||balanceDetails.order)}}" value="{{lz.htm(balanceDetails.order)}}" />
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{order_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="order">{{balanceDetails.order}}</textarea>
		 		<span>
		 	
			 {{lz.html(balanceDetails.order$||balanceDetails.order)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$order}}
	{{lz.set("number_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"number"))))}}
	{{lz.set("number_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$number}}
	<dl lz:if="{{number_editable||number_readonly}}" class="number  " major  ref="number">
		<dt>消费数量:</dt>
		<dd lz:if="{{number_editable}}" input="number">
			<lz:block lz:if="{{balanceDetails$number}}">
				{{balanceDetails$number}}
			</lz:block>
			<lz:block lz:if="{{!balanceDetails$number}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="balanceDetails.number" id="number"  value="{{lz.htm(balanceDetails.number)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入余额消费明细的消费数量</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{number_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="number">{{balanceDetails.number}}</textarea>
		 		<span>
		 	
			 {{lz.html(balanceDetails.number$||balanceDetails.number)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$number}}
	{{lz.set("products_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"products"))))}}
	{{lz.set("products_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$products}}
	<dl lz:if="{{products_editable||products_readonly}}" class="products  " major  ref="products">
		<dt>余额产品:</dt>
		<dd lz:if="{{products_editable}}" input="query">
			<lz:block lz:if="{{balanceDetails$products}}">
				{{balanceDetails$products}}
			</lz:block>
			<lz:block lz:if="{{!balanceDetails$products}}">
		 			<input title="请输入产品余额编号进行查询" class="combox narrow" action="/manage/query.Product.do?value={param}" type="text" id="products" name="balanceDetails.products" text="{{lz.html(balanceDetails.products$||balanceDetails.products)}}" value="{{lz.htm(balanceDetails.products)}}" />
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{products_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="products">{{balanceDetails.products}}</textarea>
		 		<span>
		 	
			 {{lz.html(balanceDetails.products$||balanceDetails.products)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$products}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{balanceDetails.id}}" name="balanceDetails.id" id="id" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'}}">
				<button class="button" type="submit">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>


 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>

</script>
</html>